MailPoet\Newsletter\NewslettersRepository S

Total Complexity 50
Dependencies 16
Dependents 49
Total lines 593
Lines of code 464
Logical lines of code 108
Comment lines 61
Methods 27
Properties 1

Methods 27

Method Rating Maintainability Complexity Lines of code
getAnalytics()
A
41 8 56
getArchives()
A
43 7 49
bulkRestore()
S
48 3 36
bulkTrash()
S
48 3 35
getStandardNewsletterListWithMultipleStatuses()
S
53 3 23
getNotificationHistoryItems()
S
56 3 18
findActiveByTypeAndGroup()
S
56 2 18
getStandardNewsletterSentCount()
S
58 2 16
getScheduledStandardEmailsAndActiveAutomaticEmails()
S
53 1 25
findSendingNotificationHistoryWithoutPausedOrInvalidTask()
S
56 1 19
getCountOfActiveAutomaticEmailsForEvent()
S
58 1 16
findActiveByTypes()
S
61 1 14
findDraftByTypes()
S
61 1 14
getStandardNewsletterList()
S
61 1 14
getCountForStatusAndTypes()
S
62 1 13
getWpPostIds()
S
63 1 12
getGutenbergNewsletterSentCount()
S
64 1 11
deleteByIds()
S
64 1 11
prefetchOptions()
S
64 1 11
prefetchSegments()
S
64 1 11
__construct()
S
76 1 4
getEntityClassName()
S
82 1 3
getCountOfEmailsWithWPPost()
S
68 1 8
getTotalGutenbergNewsletterCount()
S
67 1 9
getCorruptNewsletters()
S
78 1 3
setAsCorrupt()
S
74 1 5
fetchChildrenIds()
S
65 1 10